<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container {
        display: inline-block;
        border: 1px solid #333;
      }
      .cover{
          width: 200px;
          height: 200px;
          background-color: aliceblue;
          /* transition-property: all;
          transition-timing-function: ease-in;
          transition-duration: 1S; */

      }
      .cover:hover{
        animation-name: moves;
        animation-duration: 1s;
        cursor: pointer;
        animation-timing-function: ease-in;
      }

      @keyframes moves {
          0% {
            transform:translate(0px,0px)
          }
          33%  {
            transform:translate(0px,200px)
          }
          66%  {
            transform:translate(200px,200px)
          }
          100%  {
            transform:translate (200px,0px)
          }
          
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="cover"></div>
    </div>
  </body>
</html>
